package com.itheima.spring_observer_review;

import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @program: design
 * @description:
 * @author: zhanghz001
 * @create: 2021-02-26 21:46
 **/
public class SpringObserverTest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("spring-event_review.xml");
        MessageEvent event = new MessageEvent("beijing", "18126356440");
        context.publishEvent(event);
    }
}
